package com.example.dubbo.provider.service;

import com.example.dubbo.api.dubbo.PeopleService;
import com.example.dubbo.api.entity.PeopleEntity;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2021/9/18 13:34
 */
@Slf4j
@DubboService
public class PeopleServiceImpl implements PeopleService {
    @Override
    public PeopleEntity getPeopleById(Integer id) {
        log.info("id:{}", id);
        return new PeopleEntity().setId(id).setName("admin" + id);
    }
}
